<template>
  <div class="body__cell" :style="{width: `${width}px`}">
    <div class="cell__text"><slot></slot></div>
    <div class="cell__fun">
      <div class="cell__slier"></div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    width: {
      type: Number,
      default: 50
    }
  }
}
</script>

<style>
.body__cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.cell__text {
  padding-left: 4px;
  overflow: hidden;
  white-space: nowrap;
}
.cell__fun {
  height: 100%;
}
.cell__slier {
  height: 100%;
  width: 1px;
  border-right: 1px dotted #ccc;
}
</style>